﻿<UserControl
    x:Class="Weather3.UserControl1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Weather3"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="400"
    d:DesignWidth="400">
    
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="30*"/>
            <RowDefinition Height="30*"/>
            <RowDefinition Height="150*"/>
            <RowDefinition Height="20*"/>
            <RowDefinition Height="20*"/>
            <RowDefinition Height="20*"/>
            <RowDefinition Height="30*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200*"/>
            <ColumnDefinition Width="200*"/>
        </Grid.ColumnDefinitions>
        <TextBlock x:Name="txtDateTime" Text="2012/04/05 星期四" Foreground="White" FontFamily="Segoe WP Bold" FontSize="26" Grid.ColumnSpan="2" d:LayoutOverrides="Margin" />
        <TextBlock Grid.Row="1"  Text="白天" FontSize="26" TextAlignment="Center" d:LayoutOverrides="Margin" />
        <TextBlock Grid.Row="1"  Text="夜晚" FontSize="26" TextAlignment="Center" Grid.Column="1" d:LayoutOverrides="Margin" />
        <Image Name="imgWhite"  Grid.Row="2" Source="Images/leizhenyu_0.png" Stretch="UniformToFill" Margin="0" />
        <Image Name="imgNight"  Grid.Row="2" Stretch="UniformToFill" Grid.Column="1" Source="Images/leizhenyu_1.png" Margin="0"/>
        <TextBlock x:Name="txtStatus1" Grid.Row="4"  Text="多云" FontSize="24" TextAlignment="Center" />
        <TextBlock x:Name="txtStatus2" Grid.Row="4"  Text="多云" FontSize="24" TextAlignment="Center" Grid.Column="1" />
        <Grid  Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="35*"/>
                <ColumnDefinition Width="15*"/>
                <ColumnDefinition Width="30*"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="txtTemperature1"   Text="28℃" FontSize="24" TextAlignment="Center" />
            <TextBlock x:Name="txtTg1" Grid.Column="1"  Text="体感" TextAlignment="Center"  FontSize="16" VerticalAlignment="Bottom"/>
            <TextBlock x:Name="txtTgd1" Grid.Column="2" TextWrapping="Wrap" Text="25℃" FontSize="24"/>
        </Grid>
        <Grid  Grid.Row="3" Grid.Column="1">
            <!--<Grid.ColumnDefinitions>
                <ColumnDefinition Width="35*"/>
                <ColumnDefinition Width="10*"/>
                <ColumnDefinition Width="35*"/>
            </Grid.ColumnDefinitions>-->
            <!--<TextBlock x:Name="txtTemperature2"   Text="28℃" FontSize="24" TextAlignment="Center" />
            <TextBlock Grid.Column="1"  Text="体感" TextAlignment="Right" VerticalAlignment="Bottom"/>-->
            <TextBlock x:Name="txtTemperature2"  TextWrapping="Wrap" Text="20℃" FontSize="24" TextAlignment="Center"/>
        </Grid>
        <Grid  Grid.Row="5" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="127*"/>
                <ColumnDefinition Width="73*"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="txtDirection1"  Text="无持续风向" FontSize="24" TextAlignment="Right" d:LayoutOverrides="GridBox" />
            <TextBlock x:Name="txtPower1" TextWrapping="Wrap" Text="≤3" FontSize="24" Grid.Column="1" d:LayoutOverrides="GridBox" />
        </Grid>
        <Grid  Grid.Row="5" Grid.Column="1" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="127*"/>
                <ColumnDefinition Width="73*"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="txtDirection2"  Text="无持续风向" FontSize="24" TextAlignment="Right"  />
            <TextBlock x:Name="txtPower2"   Text="≤3" FontSize="24" Grid.Column="1"  />
        </Grid>
    </Grid>
</UserControl>
